<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">


<ui:composition template="/layout/mobileLayout.xhtml">
	<ui:define name="contentPart">

		<h:form id="formId" style="font-size:40px;">
	
			<p:panel id="rpnl" header="Source file(s)" style="width:100%">
				<h:outputText id="fileValue" value="#{treeBean.selectedNode.label}" />
			</p:panel>
			
			<p:tree value="#{treeBean.root}" var="node" id="tree"
				widgetVar="tree" selectionMode="single"
				selection="#{treeBean.selectedNode}" style="width:100%;border:0">

				<p:ajax event="select" update=":formId"
					listener="#{treeBean.onNodeSelect}" />

				<p:treeNode id="treeNode">
					<h:outputText value="#{node}" id="lblNode" />
				</p:treeNode>
			</p:tree>

		</h:form>
	</ui:define>
</ui:composition>
</html>